package com.test.utils.junit;

import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;

@RunWith(MySpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "/config/application-context.xml" })
@TransactionConfiguration(transactionManager = "transactionManager", 
defaultRollback = true) 
@Transactional
public abstract class BaseServiceTestCase {
	//private static SqlSessionFactory sqlSessionFactory;  
	@Before
	public void openSession() throws Exception {
		
	}
	@After
	public void closeSession() throws Exception {
		
	}

}